package main

import (
	_ "github.com/mattn/go-sqlite3"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/Core"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/theme"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/meta"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/admin"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/article"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/category"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/comment"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/user"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/home"
	"git.oschina.net/fuxiaohei/fuxiaohei-go.git/App/link"
)

func init() {

	Core.Register(theme.Theme{})
	Core.Register(meta.Home{}, meta.Admin{})
	Core.Register(admin.Home{}, admin.Login{})
	Core.Register(article.Home{}, article.Admin{})
	Core.Register(category.Admin{})
	Core.Register(comment.Home{}, comment.Admin{})
	Core.Register(user.Admin{})
	Core.Register(link.Admin{}, link.Home{})
	Core.Register(home.Home{})

}

func main() {

	Core.Setup()
	Core.Run()

}


